package com.sunrise.xdoc.entity.operator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.sunrise.xdoc.entity.AbstractCodeEntity;

@Entity
@Table(name = "op_module")
@Inheritance(strategy = InheritanceType.JOINED)
public class Module extends AbstractCodeEntity {
	private static final long serialVersionUID = -3522943668058006189L;
	private String name;
	private boolean active = false;

	@Column(name = "name", length = 128)
	@NotNull
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "active")
	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
}
